import numpy as np
import pandas as  pd
from sklearn.svm import SVC
import matplotlib.pyplot as plt

dot1 = np.random.randn(20,2)+[-3,-2]
dot2 = np.random.randn(20,1)+[3,3]

x_train = np.r_[dot1,dot2]
# print(x_train)
y_train = np.r_[np.zeros(20),np.ones(20)]
y_train.ravel()

plt.scatter(x_train[:,0],x_train[:,1],c=y_train)
plt.savefig('1svm.png')